package com.github.livebase.util.template;

import android.util.Log;

import com.googlecode.aviator.Expression;

import java.util.Map;

/**
 * @ClassName AExpression
 * @description:
 * @author: biao532
 * @create: 2023-12-28 14:04
 * @Version 1.0
 **/
public class VarExpression extends LiteralExpression implements IExpression {
    protected VarExpression(String data) {
        super(data);
    }

    @Override
    public Object eval(Map<String, ? extends Object> env) {
        return env.get(getData());
    }
}
